ig.module(
    
    'game.entities.bullit'
    
).requires(
    
    'impact.entity',
    'game.entities.moveable'
    
).defines(function(){

    EntityBullit = Moveable.extend({
        size:{
            x: 6,
            y: 6
        },
        offset:{
            x: 0,
            y: 0
        },
        maxVel: {
            x: 250,
            y: 250
        },
        moveclass: null,
        player: null,        
        type: ig.Entity.TYPE.A,        
        checkAgainst: ig.Entity.TYPE.B,        
        health: 1,        
        animSheet: new ig.AnimationSheet('media/sprites/bullit.png',6,6),
        move: null,
        
        init: function( x, y, settings){
            this.parent(x, y, settings);
            this.addAnim('idle', 1, [0]);
        },
        
        update: function(){            
            if( this.pos.x < 0 || this.pos.x > 1000)
                this.kill();
            if( this.pos.y < 0 || this.pos.y > 1000)
                this.kill();
                
            this.parent();
        },
        check: function( other ){
            this.kill();
            other.receiveDamage( 10 );
        }        
    });
})